import { get, post } from './http';

export const Login = p => post('?q=app/user/login', p);

export const getList = p => get('?q=app/production_load_material', p);

export const import_file = p => post('?q=app/production_load_material/production_load_material_update', p);

export const execute_data = p => post('?q=app/production_load_material/production_load_material_prepare_execute', p);

export const execute_on = p => post('?q=app/production_load_material/production_load_material_execute_on', p);

export const post_machine_number = p => post('?q=app/production_load_material/production_load_material_machine_number', p);

export const execute_accomplish = p => post('?q=app/production_load_material/production_load_material_execute_accomplish', p);

export const affirm_accomplish = p => post('?q=app/production_load_material/production_load_material_affirm_accomplish', p);

export const edit_elevator = p => post('?q=app/production_load_material/production_load_material_edit_elevator', p);

export const edit_urgent = p => post('?q=app/production_load_material/production_load_material_edit_urgent', p);

export const delete_data = p => post('?q=app/production_load_material/production_load_material_delete', p);

export const getToken = p => post('?q=app/user/token', p);

export const getMaterialCategory = p => get('?q=app/material_quality/configuration/material_category');

export const getProductionPermission = p => get('?q=app/production_load_material/configuration/production_load_material_permission');
